package org.huangxq.bigscreen.data

import jakarta.persistence.Column
import jakarta.persistence.EmbeddedId
import jakarta.persistence.Entity
import java.io.Serializable

@Entity(name = "ind_simple")
data class SimpleIndConfigData(
    @EmbeddedId
    var key: SimpleIndConfigId = SimpleIndConfigId(), //主题代码
    var name: String = "",    //指标名称
    var dbID:  String = "", //数据库代码
    @Column(name = "\"sql\"")
    var sql:  String = "", //sql语句
    @Column(name = "\"real\"")
    var real: Boolean = false, //是否为实时指标
)

data class SimpleIndConfigId(
    var id: String = "", //主题代码
    var indId: String = "", //指标代码
): Serializable{
    constructor(): this("", "")
}